package com.yzd.learnjava.strings;

import com.yzd.learnjava.util.Print;

public class DataBaseException extends Exception{
	
	public DataBaseException(int id , int qid, String msg) {
		super(String.format("(t%d, q%d) %s", id , qid, msg));
	}
	
	public static void main(String[] args) {
		try {
			throw new DataBaseException(3, 7, "Write failed");
		} catch (Exception e) {
			Print.print(e);
		}
	}

}
